<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>each</title>
</head>
<body>
<tr th:each="p:${products}">
    <td th:text="${p.id}">1</td>
    <td th:text="${p.name}">名字</td>
    <td th:text="${p.price}">价格</td>
    <td th:text="${p.createTime}">时间</td>
    <td th:text="${onLine}?'在售':'下架'">zhuangtai</td>
</tr>
</body>
</html>